#!/usr/bin/env python
# encoding: utf-8
"""
@author:zwb
@file: urls.py
@contact: zwb15083976291@163.com
@time: 2021/10/09
"""
from django.urls import path

from admin.views import tags, administration, categories, links, musics, pages, website, articles, messages, comments, \
    home

urlpatterns = [
    path('tags', tags.ManagementTagView.as_view()),  # 标签
    path('tags/all', tags.BatchManagementTagView.as_view()),
    path('login', administration.AdminLoginView.as_view()),  # 登录
    path('info', administration.AdminInfoView.as_view()),  # 信息
    path('logout', administration.AdminLogoutView.as_view()),  # 退出登录
    path('uploadtoken', administration.ImageUploadView.as_view()),  # 文件上传临时token
    path('categories', categories.ManagementCategoriesView.as_view()),  # 分类
    path('categories/all', categories.BatchManagementCategoriesView.as_view()),
    path('links', links.ManagementLinkView.as_view()),  # 友链
    path('musics', musics.ManagementMusicsView.as_view()),  # 音乐
    path('pages', pages.ManagementPagesView.as_view()),  # 页面管理
    path('website', website.WebSiteConfigureView.as_view()),  # 网站管理
    path('website/about', website.AboutMeConfigureView.as_view()),
    path('website/password', website.UpdatePasswordView.as_view()),  # 修改密码
    path('articles', articles.ManagementArticleView.as_view()),  # 文章
    path('articles/all', articles.ManagementArticleListView.as_view()),  # 文章列表
    path('drafts', articles.ManagementDraftView.as_view()),  # 草稿
    path('drafts/all', articles.ManagementDraftListView.as_view()),  # 草稿
    path('messages', messages.MessagesView.as_view()),  # 留言
    path('messages/all', messages.MessagesBatchView.as_view()),  # 批量留言
    path('comments', comments.CommentsView.as_view()),  # 评论管理、
    path('comments/all', comments.CommentsListView.as_view()),  # 评论管理
    path('home', home.AdminHomeView.as_view())  # 首页
]
